package com.cdxy.biz.process.impl;

import com.cdxy.biz.process.IHotelBizProcess;
import com.cdxy.model.dto.base.resp.BasePageResp;
import com.cdxy.model.dto.req.HotelDetailReq;
import com.cdxy.model.dto.req.SearchHotelReq;
import com.cdxy.model.dto.resp.HotelDetailResp;
import com.cdxy.model.dto.resp.SearchHotelResp;
import com.cdxy.service.IHotelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: tangy
 * @Date: 2020/3/25 18:36
 */
@Service
public class HotelBizProcessImpl implements IHotelBizProcess {

    @Autowired
    private IHotelService hotelService;

    @Override
    public BasePageResp<SearchHotelResp> searchHotel(SearchHotelReq searchHotelReq) {
        return hotelService.searchHotel(searchHotelReq);
    }

    @Override
    public HotelDetailResp hotelDetail(HotelDetailReq hotelDetailReq) {
        return hotelService.hotelDetail(hotelDetailReq);
    }
}
